<script setup lang="ts">
/*运行时类型声明
defineProps({
  name: {
    type: String
  },
  age: {
    type: Number
  }
})*/


/* 基于类型声明 */
interface Props {
  name: string,
  age: number
}

const {age = 22} = defineProps<Props>()
console.log(age)
</script>

<template>
  <div>

  </div>
</template>

